{% macro flash(type, message, close, use_raw, class, domain) %}
    <div class="alert {{ type ? ' alert-'~type : '' }} ">
        {% if close|default(false) %}
            <button type="button" class="close" data-dismiss="alert">
                <i class="ace-icon fa fa-times"></i>
            </button>
        {% endif %}
        {% if type == 'success' %}
            <strong>
                <i class="ace-icon fa fa-check"></i>
            </strong>
        {% elseif type == 'danger' %}
            <strong>
                <i class="ace-icon fa fa-times"></i>
            </strong>
        {% endif %}
        {% if use_raw|default(false) %}
            {{ message|raw }}
        {% else %}
            {{ message }}
        {% endif %}
    </div>
{% endmacro %}